<?php get_instance()->view('common/header');?>
<div class="page-container home">
    <?php get_instance()->view('common/sidebar');?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title"> <?php echo $title ?> </h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li class="btn-group"> <a class="btn default ml_5 return" href="<?php echo getUrl('home');?>"><i class="fa fa-chevron-left"></i> 返回</a> </li>
                        <li> <i class="fa fa-home"></i> <a href="<?php echo getUrl('home');?>"> 首页  <i class="fa fa-angle-right"></i> </a></li>
                        <li><a href="javascript:void(0);"><?php echo $title ?> </a></li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <!-- BEGIN FORM-->
                            <form action="<?php echo getUrl('config/explain/save')?>" class="form-horizontal" method="post" novalidate="novalidate">
                                <div class="form-body">
                                    <div class="tabbable tabbable-custom tabbable-custom-profile">
                                        <ul class="nav nav-tabs">
                                            <li class="active"><a href="#tab_1_1" data-toggle="tab"> 充值 </a></li>
                                            <li><a href="#tab_1_2" data-toggle="tab"> 红包 </a></li>
                                            <li><a href="#tab_1_16" data-toggle="tab"> 包邮卡 </a></li>
                                            <li><a href="#tab_1_3" data-toggle="tab"> 代金劵 </a></li>
                                            <li><a href="#tab_1_4" data-toggle="tab"> 商家提现 </a></li>
                                            <li><a href="#tab_1_5" data-toggle="tab"> 消费者提现 </a></li>
                                            <li><a href="#tab_1_6" data-toggle="tab"> 到店消费 </a></li>
                                            <li><a href="#tab_1_7" data-toggle="tab"> 送货上门 </a></li>
                                            <li><a href="#tab_1_8" data-toggle="tab"> 实际收款 </a></li>
                                            <li><a href="#tab_1_9" data-toggle="tab"> 本月实际收款 </a></li>
                                            <li><a href="#tab_1_10" data-toggle="tab"> 积分 </a></li>
                                            <li><a href="#tab_1_11" data-toggle="tab"> 用户注册协议 </a></li>
                                            <li><a href="#tab_1_12" data-toggle="tab"> 商户注册协议 </a></li>
                                            <li><a href="#tab_1_14" data-toggle="tab"> 优惠设置 </a></li>
                                            <li><a href="#tab_1_15" data-toggle="tab"> 计费规则 </a></li>
                                        </ul>
                                        <div class="tab-content">
                                            <!--店铺信息-->
                                            <div class="active tab-pane" id="tab_1_1">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="recharge_desc" name="recharge_desc" type="text/plain" ><?php echo isset($list['recharge_desc']) ? $list['recharge_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_2">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="bonus_desc" name="bonus_desc" type="text/plain" ><?php echo isset($list['bonus_desc']) ? $list['bonus_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_3">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="coupon_desc" name="coupon_desc" type="text/plain" ><?php echo isset($list['coupon_desc']) ? $list['coupon_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_4">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="merchant_withdraw_desc" name="merchant_withdraw_desc" type="text/plain" ><?php echo isset($list['merchant_withdraw_desc']) ? $list['merchant_withdraw_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_5">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="consumer_withdraw_desc" name="consumer_withdraw_desc" type="text/plain" ><?php echo isset($list['consumer_withdraw_desc']) ? $list['consumer_withdraw_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_6">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="to_store_desc" name="to_store_desc" type="text/plain" ><?php echo isset($list['to_store_desc']) ? $list['to_store_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_7">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="to_door_desc" name="to_door_desc" type="text/plain" ><?php echo isset($list['to_door_desc']) ? $list['to_door_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_8">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="reality_receive_explain" name="reality_receive_explain" type="text/plain" ><?php echo isset($list['reality_receive_explain']) ? $list['reality_receive_explain'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_9">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="month_reality_recive_expain" name="month_reality_recive_expain" type="text/plain" ><?php echo isset($list['month_reality_recive_expain']) ? $list['month_reality_recive_expain'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_10">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="integral_desc" name="integral_desc" type="text/plain" ><?php echo isset($list['integral_desc']) ? $list['integral_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_11">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="agreement" name="agreement" type="text/plain" ><?php echo isset($list['agreement']) ? $list['agreement'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_12">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="merchant_agreement" name="merchant_agreement" type="text/plain" ><?php echo isset($list['merchant_agreement']) ? $list['merchant_agreement'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_14">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="merchant_discount_desc" name="merchant_discount_desc" type="text/plain" ><?php echo isset($list['merchant_discount_desc']) ? $list['merchant_discount_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_15">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="distribution_fee_desc" name="distribution_fee_desc" type="text/plain" ><?php echo isset($list['distribution_fee_desc']) ? $list['distribution_fee_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_1_16">
                                                <div class="row ">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-3"></label>
                                                        <div class="col-md-6" >
                                                            <script id="postal_card_desc" name="postal_card_desc" type="text/plain" ><?php echo isset($list['postal_card_desc']) ? $list['postal_card_desc'] : ''?></script>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-actions fluid hide" style="position:fixed;z-index:10000;bottom:0px">
                                    <div class="col-md-offset-3 col-md-8">
                                        <button class="btn green submit-btn" type="submit"><i class="fa fa-save"></i> 保存</button>
                                    </div>
                                </div>
                                <script type="text/javascript">
                                    $(function(){
                                        setTimeout("$('.form-actions').width($('.form-body').innerWidth()).removeClass('hide');", '500');
                                        window.onresize = function(){
                                            $('.form-actions').width($('.form-body').innerWidth());
                                        }
                                    });
                                </script>
                            </form>
                            <!-- END FORM-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $.e_validate.init('.form-horizontal',{});
        UE.getEditor('recharge_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('bonus_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('coupon_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('merchant_withdraw_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('consumer_withdraw_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('to_store_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('to_door_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('reality_receive_explain',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('month_reality_recive_expain',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('integral_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('agreement',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('merchant_agreement',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('merchant_discount_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('distribution_fee_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
        UE.getEditor('postal_card_desc',{initialFrameWidth:'800',initialFrameHeight:'300',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/explain/editor');?>'});
    });
</script>
</body>
</html>